// pages/look-back/index.js
import { cloud } from "../../utils/cloud";
Page({
  data: {
    todos:[]
  },
  onLoad(options) {
    this.getWeekTodo()
  },
  getWeekTodo(){
    cloud({
      url:"task/weektodos"
    }).then(res=>{
      this.setData({
        todos:res.data
      })
    }).catch(e=>{})
  },
  onReady() {

  },
  onShow() {

  },
  onHide() {

  },

  onUnload() {

  },
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})